Registry Guide for Windows Registry Guide for Windows
Part of the WinGuides Network
WinGuides Network and Software
Registry tweaks, tricks & hacks to optimize, enhance and secure Microsoft Windows.

Configure LMHOSTS Lookup Options (Windows NT/2000/XP)
Category: Home > Network > Protocols > WINS

Download this tweak with Tweak Manager!This tweak can be easily applied using WinGuides Tweak Manager.
Download a free trial now!

The LMHOSTS file is used within Windows networking to specify domain resolution and lookup information. These settings allow you to configure the use of the LMHOSTS file.

Open your registry and find the key below.

Create or modify the following DWORD values as necessary:

EnableLMHOSTS - 1 = enable LMHOSTS use, 0 = disable

MaxPreLoad - specify the number of #PRE entries to load (default = 100)

NodeType - specify the WINS query type

  • 1 = if no WINS servers are configured (B-node/broadcast)
  • 4 = perform a broadcast before querying name servers (M-mode/mixed)
  • 8 = at least one WINS server is configured (H-node/queries)

    Restart Windows for the changes to take effect.

    Registry Editor Example
    |NameTypeData|
    |(Default)REG_SZ(value not set)|
    |EnableLMHOSTSREG_DWORD0x00000001 (1)|
    |MaxPreLoadREG_DWORD0x000000c8 (200)|
    |NodeTypeREG_DWORD0x00000008 (8)|
    -
    |HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NetBT\Parameters|
    -

    Settings:
    System Key: [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NetBT\Parameters]
    Name: EnableLMHOSTS, MaxPreLoad, NodeType
    Type: REG_DWORD (DWORD Value)

    Disclaimer: Modifying the registry can cause serious problems that may require you to reinstall your operating system. We cannot guarantee that problems resulting from modifications to the registry can be solved. Use the information provided at your own risk.

    Last Modified: May 21, 2003

  •  Return to Index Copyright © 1998-2003. All Rights Reserved.  License